package com.chouren.goandroid.animate.effect;

import android.view.View;

import com.nineoldandroids.animation.ObjectAnimator;

public class SlitEffect extends BaseEffect{

	@Override
	protected void setAnimators(View view) {
		getAnimatorSet().playTogether(
                ObjectAnimator.ofFloat(view, "rotationY", 90,88,88,45,0).setDuration(duration),
                ObjectAnimator.ofFloat(view, "alpha", 0,0.4f,0.8f, 1).setDuration(duration*3/2),
                ObjectAnimator.ofFloat(view, "scaleX", 0,0.5f, 0.9f, 0.9f, 1).setDuration(duration),
                ObjectAnimator.ofFloat(view,"scaleY",0,0.5f, 0.9f, 0.9f, 1).setDuration(duration)
        );
	}
}
